<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>任务目标完成进度统计</h2>

	</div>
    <div class="tools">
            <form action="{:U()}" method="post">
                选择时间：
                <input type="text" value="{$begin}" name="time_start" class="date" style="width:80px;" onclick="laydate({format: 'YYYY-MM'})"> - <input type="text" value="{$end}" name="time_end" class="date" style="width:80px;" onclick="laydate({format: 'YYYY-MM'})">
                <span class="buttons">
                    <input type="submit"  id="submit" class="btn" value="开始查询">
                </span>
            </form>
    </div>

	<!-- 数据列表 -->
	<div class="data-table">
        <div class="data-table table-striped">
<table class="">
    <thead>
        <tr>
		<th class="">日期</th>
        <th class="">目标获取</th>
		<th style="background:#28b779;">实际获取</th>
		<th style="background:#da542e;">完成率</th>
        <th class="">目标婚纱</th>
		<th style="background:#28b779;">实际婚纱</th>
		<th style="background:#da542e;">完成率</th>
		<th class="">目标艺术</th>
        <th style="background:#28b779;">实际艺术</th>
		<th style="background:#da542e;">完成率</th>
		<th class="">目标跟拍</th>
        <th style="background:#28b779;">实际跟拍</th>
		<th style="background:#da542e;">完成率</th>
		<th >目标总计</th>
        <th style="background:#28b779;">实际总计</th>
		<th style="background:#da542e;">完成率</th>
		</tr>
    </thead>
    <tbody>
	<notempty name="data">
		<volist name="data" id="vo">
		<tr>
			<td>{$vo.time}</td>
			<td>{$vo.huoqu}</td>
            <td>{$vo.jd}</td>
            <td><?php echo number_format($vo['jd']/$vo['huoqu'],2)*100; ?>%</td>
            <td>{$vo.hunsha}</td>
            <td>{$vo.hscj}</td>
            <td><?php echo number_format($vo['hscj']/$vo['hunsha'],2)*100; ?>%</td>
			<td>{$vo.yishu}</td>
			<td>{$vo.yscj}</td>
          	<td><?php echo number_format($vo['yscj']/$vo['yishu'],2)*100; ?>%</td>
			<td>{$vo.genpai}</td>
			<td>{$vo.gpcj}</td>
          	<td><?php echo number_format($vo['gpcj']/$vo['genpai'],2)*100; ?>%</td>
			<td>{$vo.zongji}</td>
			<td>{$vo.zj}</td>
			<td><?php echo number_format($vo['zj']/$vo['zongji'],2)*100; ?>%</td>

			
		</tr>
		
		</volist>
		<else/>
		<td colspan="12" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
        <tr>
            <td style="background-color:#51D0CA;">总计</td>
          	<td style="background-color:#51D0CA;">{$zj.huoqu}</td>
            <td style="background-color:#51D0CA;">{$zj.jd}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['jd']/$zj['huoqu'],2)*100; ?>%</td>
            <td style="background-color:#51D0CA;">{$zj.hunsha}</td>
            <td style="background-color:#51D0CA;">{$zj.hscj}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['hscj']/$zj['hunsha'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.yishu}</td>
			<td style="background-color:#51D0CA;">{$zj.yscj}</td>
          	<td style="background-color:#51D0CA;"><?php echo number_format($zj['yscj']/$zj['yishu'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.genpai}</td>
			<td style="background-color:#51D0CA;">{$zj.gpcj}</td>
          	<td style="background-color:#51D0CA;"><?php echo number_format($zj['gpcj']/$zj['genpai'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.zongji}</td>
			<td style="background-color:#51D0CA;">{$zj.zj}</td>
			<td style="background-color:#51D0CA;"><?php echo number_format($zj['zj']/$zj['zongji'],2)*100; ?>%</td>

        </tr>
	</tbody>
    </table>

        </div>
    </div>
    <div class="page">

    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    
</block>
